package com.restaurant.application.minifacade;

import com.nebutown.description.UnitDescription;

public class MiniFacadeDesc extends UnitDescription {

    public static void main(String[] args) {
        getUnitDescription().run("./");
    }

    private static UnitDescription getUnitDescription() {
        UnitDescription desc = UnitDescription.basicUnit(MiniFacade.class, null);
        desc.nextBean("PathData")
                .add("actionPath", String.class)
        ;
        desc.nextBean("RequestData")
                .add("action", String.class)
                .add("data", String.class)
        ;
        desc
                .addUiFunction("action", "RequestData")
        ;
        return desc;
    }
}
